@prefix iop: <https://w3id.org/iadopt/ont/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ex: <https://example.org/data/> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix uom: <http://www.ontology-of-units-of-measure.org/resource/om-2/> .
@prefix iopp: <https://w3id.org/iadopt/pattern/> .
@prefix patt: <http://example.org/iadopt/pattern> .

ex:State-of-pipe
    a 
        iop:Variable ;
    rdfs:label 
        "State of connection pipe" ;
    rdfs:comment 
        """State (faulty, cracked, ... ) of pipe connection in plastic with a diametre of 30 cm.""" ;
    ex:issue "https://github.com/mabablue/I-ADOPT-examples-playground/issues/1" ;
    iop:hasObjectOfInterest 
        ex:PipeConnection ;
    iop:hasProperty 
        <https://www.wikidata.org/entity/Q813912> ;
    iop:hasConstraint 
        [ a iop:Constraint ;
             rdfs:label "material type: plastic" ;
             iop:constrains ex:PipeConnection ;
        ] ,
        [ a iop:Constraint ;
             rdfs:label "size:diameter of 30 cm" ;
             iop:constrains ex:PipeConnection ;
        ] .

ex:PipeConnection
    a 
        iop:Entity ;
    rdfs:label 
        "pipe connection" .

<https://www.wikidata.org/entity/Q813912>
    a 
        iop:Property ;
    rdfs:label 
        "state" .
